package com.kuizii.server.config;

import com.kuizii.server.naming.ClusterServer;
import com.kuizii.server.naming.DefaultClusterServer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RegisterBootConfig {

    @ConditionalOnMissingBean(ClusterServer.class)
    ClusterServer getClusterServer() {
        DefaultClusterServer defaultClusterServer = new DefaultClusterServer();
        return defaultClusterServer;
    }

}
